import { TypeNslRouteRecord } from '@/utils/util_type'
import LogInView from '@/views/login/login_element_index.vue'
export const Layout = () => {
    return import('@/views/layout/layout_index.vue')
}
let staticShowRoutes: TypeNslRouteRecord[]=[
    {
        path: '/',
        name: 'Layout',
        component: Layout,
        redirect: '/home_bbu',
        meta: { 
            hidden: true,
            title: 'layout',
            // isNavMenu:true,
            icon: 'el-icon-setting',
        },
        children: [
            {
                name: 'home_bbu',
                path: '/home_bbu',
                component: () => import('@/views/home/home_index.vue'),
                // component:componentHomeIndexOfBbu,
                meta: { 
                    hidden: true,
                    title: '首页',
                    affix: true,
                    icon: 'el-icon-setting',
                    isNavMenu:true
                },
            }
        ]
    },
    {
        path: '/login',
        name: 'login',
        // component: () => import('@/views/login/login_element_index.vue'),
        component:LogInView,
        meta: { 
            hidden: true, 
            icon: 'el-icon-setting' ,
            title: 'login',
            isNavMenu:false
        },
    },
    {
        path: '/redirect',
        name: 'redirect',
        component: Layout,
        meta: { 
            hidden: true, 
            icon: 'el-icon-setting' ,
            title: 'redirect',
            isNavMenu:false
        },
        children: [
            {
                name: 'redirectAny',
                path: '/redirect/:path(.*)',
                component: () => import('@/views/redirect/redirect_index.vue'),
                meta: { 
                    hidden: true, 
                    icon: 'el-icon-setting' ,
                    title: 'redirectAny',
                    isNavMenu:false,
                },
            },
        ],
    },
]

const bbuReturnRoutes: TypeNslRouteRecord[]=[
    {
        path: '/bbu_current',
        name: 'bbu_current',
        component: Layout,
        redirect: '/bbu/apparatus_room',
        meta: { 
            hidden: true,
            title: '极简整合前',
            isNavMenu:true,
            icon: 'el-icon-setting',
        },
        children:[
            {
                name: 'apparatus_room',
                path: '/apparatus_room',
                component: () => import('@/views/current_status/apparatus_room/apparatus_room_index.vue'),
               // 用于 keep-alive, 必须与SFC自动推导或者显示声明的组件name一致
                // https://cn.vuejs.org/guide/built-ins/keep-alive.html#include-exclude
                meta: {
                    title: '机房信息',
                    icon: 'el-icon-setting',
                    // affix: true,
                    isNavMenu:true,
                },
            },
            {
                name: 'bbu_board_status',
                path: '/bbu_board_status',
                component: () => import('@/views/current_status/bbu_board_status/bbu_board_status_index.vue'),
               // 用于 keep-alive, 必须与SFC自动推导或者显示声明的组件name一致
                // https://cn.vuejs.org/guide/built-ins/keep-alive.html#include-exclude
                meta: {
                    title: '基站板卡信息',
                    icon: 'el-icon-setting',
                    // affix: true,
                    isNavMenu:true,
                },
            },
        ]
    },{
        path: '/bbu_scheme',
        name: 'bbu_scheme',
        component: Layout,
        redirect: '/bbu_scheme/action',
        meta: { 
            hidden: true,
            title: '极简方案',
            isNavMenu:true,
            icon: 'el-icon-setting',
        },
        children:[
            {
                name: 'bbu_action',
                path: '/action',
                component: () => import('@/views/bbu_return/scheme_module/actions/action_index.vue'),
               // 用于 keep-alive, 必须与SFC自动推导或者显示声明的组件name一致
                // https://cn.vuejs.org/guide/built-ins/keep-alive.html#include-exclude
                meta: {
                    title: '极简动作',
                    icon: 'el-icon-setting',
                    // affix: true,
                    isNavMenu:true,
                },
            },
        ]
    },{
        path: '/bbu_after',
        name: 'bbu_after',
        component: Layout,
        redirect: '/bbu/apparatus_room_after',
        meta: { 
            hidden: true,
            title: '极简整合后',
            isNavMenu:true,
            icon: 'el-icon-setting',
        },
        children:[
            {
                name: 'apparatus_room_after',
                path: '/apparatus_room_after',
                component: () => import('@/views/current_status/apparatus_room/apparatus_room_after_index.vue'),
               // 用于 keep-alive, 必须与SFC自动推导或者显示声明的组件name一致
                // https://cn.vuejs.org/guide/built-ins/keep-alive.html#include-exclude
                meta: {
                    title: '整合后机房',
                    icon: 'el-icon-setting',
                    // affix: true,
                    isNavMenu:true,
                },
            },
            {
                name: 'bbu_board_status_after',
                path: '/bbu_board_status_after',
                component: () => import('@/views/current_status/bbu_board_status/bbu_board_status_after_index.vue'),
               // 用于 keep-alive, 必须与SFC自动推导或者显示声明的组件name一致
                // https://cn.vuejs.org/guide/built-ins/keep-alive.html#include-exclude
                meta: {
                    title: '整合后板卡',
                    icon: 'el-icon-setting',
                    // affix: true,
                    isNavMenu:true,
                },
            },
        ]
    },
    
]

 staticShowRoutes=staticShowRoutes.concat(bbuReturnRoutes);


export {staticShowRoutes}